<!-- <ma-crumb>
  <ma-crumb-item ma-href="#!/components">Components 组件</ma-crumb-item>
  <ma-crumb-item ma-href="#!/components/global">Global 全局</ma-crumb-item>
  <ma-crumb-item>Font 文字</ma-crumb-item>
</ma-crumb> -->
<ma-crumb-auto></ma-crumb-auto>
<div class="data-entry-page">
  <div class="container"
    ma-full-container>
    <h2>Select 选择器</h2>
    <p>
      类似 Select2 的选择器。
    </p>
    <h3>代码演示</h3>
    <div class="p clearfix">
      ${require('./code.html')}
      <div class="col-24">
        <ma-code>
          <div class="right">
            <a href="https://jsfiddle.net/youpinyao/bkz11c7e/"
              target="_blank">jsfiddle</a>
          </div>
          <code ng-bind="codeText"></code>
        </ma-code>
      </div>
    </div>
    <h3>API</h3>
    <div class="p">
      <table>
        <tr>
          <th>属性</th>
          <th>说明</th>
          <th>类型</th>
          <th>默认值</th>
        </tr>
        <tr>
          <td>name</td>
          <td>非必填</td>
          <td>String</td>
          <td>-</td>
        </tr>
        <tr>
          <td>ng-model</td>
          <td>必填</td>
          <td>String</td>
          <td>-</td>
        </tr>
        <tr>
          <td>ma-placeholder</td>
          <td>非必填</td>
          <td>String</td>
          <td>-</td>
        </tr>
        <tr>
          <td>ma-null-text</td>
          <td>非必填，没有数据时的下拉提示文本</td>
          <td>String</td>
          <td>暂无数据</td>
        </tr>
        <tr>
          <td>ma-search</td>
          <td>非必填，是否显示下拉搜索</td>
          <td>Boolean</td>
          <td>false</td>
        </tr>
        <tr>
          <td>ma-clear</td>
          <td>非必填，是否显示下拉清空</td>
          <td>Boolean</td>
          <td>false</td>
        </tr>
        <tr>
          <td>ma-multiple</td>
          <td>非必填，是否为多选</td>
          <td>Boolean</td>
          <td>false</td>
        </tr>
        <tr>
          <td>ma-limit</td>
          <td>非必填，多选数量限制</td>
          <td>Int</td>
          <td>无限制</td>
        </tr>
        <tr>
          <td>ma-text-key</td>
          <td>每一项显示文本关键字</td>
          <td>String</td>
          <td>text</td>
        </tr>
        <tr>
          <td>ma-value-key</td>
          <td>每一项对应值关键字</td>
          <td>String</td>
          <td>value</td>
        </tr>
        <tr>
          <td>ma-data</td>
          <td>选填，下拉所要显示的列表</td>
          <td>Array</td>
          <td>-</td>
        </tr>
        <tr>
          <td>ma-get-data</td>
          <td>选填，返回下拉所要显示的列表，可以是 promise，也可以是Array， @params {$searchKey: String}</td>
          <td>Function</td>
          <td>-</td>
        </tr>
      </table>
    </div>
  </div>
</div>
